import 'package:flutter/material.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';

class AppRefreshConfig extends StatelessWidget {
  final Widget child;

  AppRefreshConfig({
    required this.child,
  });

  @override
  Widget build(BuildContext context) {
    return RefreshConfiguration(
      //列表数据不满一页,不触发加载更多
      hideFooterWhenNotFull: true,
      child: child,
    );
  }
}
